import {dataPostRequest, dataPutRequest, deleteRequest, getRequest} from "@/network/axios";

export function getUser() {
    return getRequest("/userInfo/current");
}

export function getAll(searchDto) {
    return getRequest("/userInfo/All", searchDto);
}

export function deleted(id) {
    return deleteRequest("/userInfo/deleted", {id: id});
}

export function added(dto) {
    return dataPostRequest("/userInfo/added", dto);
}

export function deletedMany(ids) {
    return deleteRequest("/userInfo/deletedMany", {ids: ids});
}

export function edited(userInfo){
    return dataPutRequest("/userInfo/edited",userInfo);
}